home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June (Extra) / CHIP 2006-06.3.iso / program / opensource / clamav-devel.exe / etc / clamd.conf next >
Encoding:
Text File  |  2005-06-01  |  7.1 KB  |  279 lines

  1. ##
  2. ## Example config file for the Clam AV daemyes
  3. ## Please read the clamd.conf(5) manual before editing this file.
  4. ##
  5.  
  6.  
  7. # Comment or remove the line below.
  8. #Example
  9.  
  10. # Uncomment this option to enable logging.
  11. # LogFile must be writable for the user running daemon.
  12. # A full path is required.
  13. # Default: disabled
  14. #LogFile /tmp/clamd.log
  15. LogFile /cygdrive/c/clamav-devel/log/clamd.log
  16.  
  17.  
  18. # By default the log file is locked for writing - the lock protects against
  19. # running clamd multiple times (if want to run another clamd, please
  20. # copy the configuration file, change the LogFile variable, and run
  21. # the daemon with --config-file option).
  22. # This option disables log file locking.
  23. # Default: no
  24. #LogFileUnlock yes
  25.  
  26. # Maximal size of the log file.
  27. # Value of 0 disables the limit.
  28. # You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
  29. # and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
  30. # in bytes just don't use modifiers.
  31. # Default: 1M
  32. LogFileMaxSize 1M
  33.  
  34. # Log time with each message.
  35. # Default: no
  36. LogTime yes
  37.  
  38. # Also log clean files. Useful in debugging but drastically increases the
  39. # log size.
  40. # Default: no
  41. #LogClean yes
  42.  
  43. # Use system logger (can work together with LogFile).
  44. # Default: no
  45. #LogSyslog yes
  46.  
  47. # Specify the type of syslog messages - please refer to 'man syslog'
  48. # for facility names.
  49. # Default: LOG_LOCAL6
  50. #LogFacility LOG_MAIL
  51.  
  52. # Enable verbose logging.
  53. # Default: no
  54. #LogVerbose yes
  55.  
  56. # This option allows you to save a process identifier of the listening
  57. # daemon (main thread).
  58. # Default: disabled
  59. #PidFile /var/run/clamd.pid
  60. PidFile /cygdrive/c/clamav-devel/clamd.pid
  61.  
  62. # Optional path to the global temporary directory.
  63. # Default: system specific (usually /tmp or /var/tmp).
  64. #TemporaryDirectory /var/tmp
  65. TemporaryDirectory /cygdrive/c/clamav-devel/tmp
  66.  
  67. # Path to the database directory.
  68. # Default: hardcoded (depends on installation options)
  69. #DatabaseDirectory /var/lib/clamav
  70. DatabaseDirectory /cygdrive/c/clamav-devel/share/clamav
  71.  
  72. # The daemon works in a local OR a network mode. Due to security reasons we
  73. # recommend the local mode.
  74.  
  75. # Path to a local socket file the daemon will listen on.
  76. # Default: disabled (must be specified by a user)
  77. #LocalSocket /tmp/clamd
  78. LocalSocket /cygdrive/c/clamav-devel/clamd.sock
  79.  
  80. # Remove stale socket after unclean shutdown.
  81. # Default: no
  82. FixStaleSocket yes
  83.  
  84.  
  85.  
  86. # UNCOMMENT THE FOLLOWING TWO OPTIONS IF YOU WANT
  87. # CLAMAV TO RUN IN TCP/IP MODE, WHICH MAY SOLVE SOME
  88. # STABILITY ISSUES ON SOME VERSIONS OF WINDOWS
  89. # DON'T FORGET TO COMMENT THE LocalSocket and
  90. # FixStaleSocket OPTIONS ABOVE
  91. #====================================================
  92.  
  93. # TCP port address.
  94. # Default: no
  95. #TCPSocket 3310
  96.  
  97. # TCP address.
  98. # By default we bind to INADDR_ANY, probably not wise.
  99. # Enable the following to provide some degree of protectiyes
  100. # from the outside world.
  101. # Default: no
  102. #TCPAddr 127.0.0.1
  103.  
  104. #====================================================
  105.  
  106. # Maximum length the queue of pending connections may grow to.
  107. # Default: 15
  108. MaxConnectionQueueLength 30
  109.  
  110. # Clamd uses FTP-like protocol to receive data from remote clients.
  111. # If you are using clamav-milter to balance load between remote clamd daemons
  112. # on firewall servers you may need to tune the options below.
  113.  
  114. # Close the connection when the data size limit is exceeded.
  115. # The value should match your MTA's limit for a maximal attachment size.
  116. # Default: 10M
  117. StreamMaxLength 5M
  118.  
  119. # Limit port range.
  120. # Default: 1024
  121. #StreamMinPort 30000
  122. # Default: 2048
  123. #StreamMaxPort 32000
  124.  
  125. # Maximal number of threads running at the same time.
  126. # Default: 10
  127. MaxThreads 10
  128.  
  129. # Waiting for data from a client socket will timeout after this time (seconds).
  130. # Value of 0 disables the timeout.
  131. # Default: 120
  132. ReadTimeout 60
  133.  
  134. # Waiting for a new job will timeout after this time (seconds).
  135. # Default: 30
  136. IdleTimeout 60
  137.  
  138. # Maximal depth directories are scanned at.
  139. # Default: 15
  140. MaxDirectoryRecursion 15
  141.  
  142. # Follow directory symlinks.
  143. # Default: no
  144. FollowDirectorySymlinks yes
  145.  
  146. # Follow regular file symlinks.
  147. # Default: no
  148. FollowFileSymlinks yes
  149.  
  150. # Perform internal sanity check (database integrity and freshness).
  151. # Default: 1800 (30 min)
  152. SelfCheck 1800
  153.  
  154. # Execute a command when virus is found. In the command string %v will
  155. # be replaced by a virus name.
  156. # Default: no
  157. #VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"
  158.  
  159. # Run as a selected user (clamd must be started by root).
  160. # Default: don't drop privileges
  161. #User clamav
  162.  
  163. # Initialize supplementary group access (clamd must be started by root).
  164. # Default: no
  165. AllowSupplementaryGroups yes
  166.  
  167. # Stop daemon when libclamav reports out of memory condition.
  168. ExitOnOOM yes
  169.  
  170. # Don't fork into background.
  171. # Default: no
  172. #Foreground yes
  173.  
  174. # Enable debug messages in libclamav.
  175. # Default: no
  176. #Debug yes
  177.  
  178. # Do not remove temporary files (for debug purposes).
  179. # Default: no
  180. #LeaveTemporaryFiles yes
  181.  
  182. ##
  183. ## Executable files
  184. ##
  185.  
  186. # PE stands for Portable Executable - it's an executable file format used
  187. # in all 32-bit versions of Windows operating systems. This option allows
  188. # ClamAV to perform a deeper analysis of executable files and it's also
  189. # required for decompression of popular executable packers such as UPX, FSG,
  190. # and Petite.
  191. # Default: yes
  192. ScanPE yes
  193.  
  194. # With this option clamav will try to detect broken executables and mark
  195. # them as Broken.Executable
  196. # Default: no
  197. #DetectBrokenExecutables yes
  198.  
  199.  
  200. ##
  201. ## Documents
  202. ##
  203.  
  204. # This option enables scanning of Microsoft Office document macros.
  205. # Default: yes
  206. ScanOLE2 yes
  207.  
  208. ##
  209. ## Mail files
  210. ##
  211.  
  212. # Enable internal e-mail scanner.
  213. # Default: yes
  214. ScanMail yes
  215.  
  216. # If an email contains URLs ClamAV can download and scan them.
  217. # WARNING: This option may open your system to a DoS attack.
  218. #       Never use it on loaded servers.
  219. # Default: no
  220. MailFollowURLs no
  221.  
  222.  
  223. ##
  224. ## HTML
  225. ##
  226.  
  227. # Perform HTML normalisation and decryption of MS Script Encoder code.
  228. # Default: yes
  229. ScanHTML yes
  230.  
  231.  
  232. ##
  233. ## Archives
  234. ##
  235.  
  236. # ClamAV can scan within archives and compressed files.
  237. # Default: yes
  238. ScanArchive yes
  239.  
  240. # The options below protect your system against Denial of Service attacks
  241. # using archive bombs.
  242.  
  243. # Files in archives larger than this limit won't be scanned.
  244. # Value of 0 disables the limit.
  245. # Default: 10M
  246. ArchiveMaxFileSize 5M
  247.  
  248. # Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR
  249. # file, all files within it will also be scanned. This options specifies how
  250. # deep the process should be continued.
  251. # Value of 0 disables the limit.
  252. # Default: 8
  253. ArchiveMaxRecursion 8
  254.  
  255. # Number of files to be scanned within an archive.
  256. # Value of 0 disables the limit.
  257. # Default: 1000
  258. ArchiveMaxFiles 500
  259.  
  260. # If a file in an archive is compressed more than ArchiveMaxCompressionRatio
  261. # times it will be marked as a virus (Oversized.ArchiveType, e.g. Oversized.Zip)
  262. # Value of 0 disables the limit.
  263. # Default: 250
  264. #ArchiveMaxCompressionRatio 300
  265.  
  266. # Use slower but memory efficient decompression algorithm.
  267. # only affects the bzip2 decompressor.
  268. # Default: no
  269. #ArchiveLimitMemoryUsage yes
  270.  
  271. # Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).
  272. # Default: no
  273. ArchiveBlockEncrypted no
  274.  
  275. # Mark archives as viruses (e.g. RAR.ExceededFileSize, Zip.ExceededFilesLimit)
  276. # if ArchiveMaxFiles, ArchiveMaxFileSize, or ArchiveMaxRecursion limit is
  277. # reached.
  278. # Default: no
  279. #ArchiveBlockMax no